<template>
  <el-button  @click="login">login按钮</el-button>
</template>
<script>
export default {
  data() {
    return {
    };
  },
  methods: {
      login() {
        this.$router.push({
          path:'/home'
        })
    }
 
  }
};
</script>

<style>
</style>
